<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type"
			content="text/html; charset=ISO-8859-1">
		<fmt:setBundle basename="messages" />
		<title><fmt:message key="title" />
		</title>

	</head>
	<body>

		<table border=1 width="80%" align="center" height="100%">
			<tr>
				<td colspan=2>

				</td>
			</tr>
			<tr>
				<td width="20%">
					<jsp:include page="adminfunc.jsp"></jsp:include>
				</td>
				<td valign="top">
					<a href="NewEmp.jsp"><fmt:message key="label.list.AddEmp" />
					</a>
					<table border='1' cellspacing='2' cellpadding='2'>
						<c:forEach var="employee" items="${requestScope.employee}"
							varStatus="listemp">
							<tr>
								<td>
									${employee.loginname}
								</td>
								<td>
									${employee.emplyeename}
								</td>
								<td>
									${employee.password}
								</td>

								<td>
									${employee.roleid}
								</td>
								<td>
									<a href="DeleteEmp?loginname=${employee.loginname}"><fmt:message
											key="label.list.DelEmp" />
									</a>
								</td>
							</tr>
						</c:forEach>
					</table>
				</td>
			</tr>
		</table>
	</body>
</html>